<?php if ($posts): ?>
  <?php foreach (array_reverse($posts) as $post): ?>
    <?php load_partial('post') ?>
  <?php endforeach ?>
<?php else: ?>
  <p class="mesage">No posts.</p>
<?php endif ?>